package com.lmds.sprindemo1.demo;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * User: mgm
 * Date: 2018/1/20
 * Time: 19:37
 */
@Component
public class BeanInject {
    @Value("Bean的属性-BeanInject")
    private String another;

    public String getAnother() {
        return another;
    }

    public void setAnother(String another) {
        this.another = another;
    }
}
